package com.xuchaotong.utils;

public class MapDemo {


    public static void main(String[] args) {
        String key = "tong";

        int hashCode = key.hashCode();
        System.out.println(hashCode);
        System.out.println(Integer.toBinaryString(hashCode));

        int h = hashCode >>> 16;
        System.out.println(Integer.toBinaryString(h));

        int index = hashCode ^ h;

        System.out.println(index);
    }
}
